@echo off 
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_18 
set JBossHome=C:\Apps\JBoss\jboss-5.1.0.GA 

set Path=%JAVA_HOME%\bin;%Path% 
cd %JBossHome%\bin 
run.bat